Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG] Add name parameter to tonic bias and add tonic biases to different sections #922

Merged
merged 28 commits into from
Jan 10, 2025

Conversation

katduecker
Copy link
Collaborator

This issue was opened by @gtdang as #768. I have added the option to name a tonic bias and define the section where the tonic bias should be applied.

I need this feature for some of the tuning that I want to do based on literature on patch clamp recordings. In my case, I want the L5 pyramidal neuron to behave differently for somatic and apical stimulation (and stimulating both at the same time).

I hope this is useful!

@katduecker katduecker changed the title [MRG] Add name parameter to tonic bias and add tonic biases to different sections Add name parameter to tonic bias and add tonic biases to different sections Oct 28, 2024
@jasmainak
Copy link
Collaborator

@katduecker can you add some unit tests?

@katduecker
Copy link
Collaborator Author

@katduecker can you add some unit tests?

Yep, done! User now receives a warning when they don't define a section, and there will be an error if they define a section that's not part of the cell. I used a DeprecationWarning because Userwarnings don't seem to be raised on my computer so the test would fail. I mentioned this before that UserWarnings aren't raised by default on all systems.

Somehow connection to NEURON timed out? Apart from that I'm ready for code review

@katduecker katduecker changed the title Add name parameter to tonic bias and add tonic biases to different sections [MRG] Add name parameter to tonic bias and add tonic biases to different sections Oct 30, 2024
Copy link
Collaborator

@gtdang gtdang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some questions and suggestions.

hnn_core/network.py Show resolved Hide resolved
hnn_core/network.py Outdated Show resolved Hide resolved
hnn_core/network.py Outdated Show resolved Hide resolved
hnn_core/tests/test_gui.py Outdated Show resolved Hide resolved
@gtdang gtdang requested a review from asoplata October 30, 2024 14:59
hnn_core/network.py Outdated Show resolved Hide resolved
hnn_core/network.py Outdated Show resolved Hide resolved
@gtdang gtdang mentioned this pull request Nov 4, 2024
3 tasks
Copy link
Collaborator

@jasmainak jasmainak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few more tweaks @katduecker ...

Also don't forget to update whats_new.rst !

hnn_core/tests/test_network.py Outdated Show resolved Hide resolved
hnn_core/tests/test_network.py Outdated Show resolved Hide resolved
hnn_core/tests/test_network.py Outdated Show resolved Hide resolved
hnn_core/network.py Outdated Show resolved Hide resolved
hnn_core/network.py Outdated Show resolved Hide resolved
@katduecker
Copy link
Collaborator Author

Thanks Mainak, done!

@jasmainak jasmainak enabled auto-merge (squash) November 7, 2024 19:15
@jasmainak
Copy link
Collaborator

I enabled auto-merge once CIs pass. Thanks @katduecker ! 🥳

@katduecker
Copy link
Collaborator Author

katduecker commented Jan 9, 2025

I didn't realize this wasn't merged yet. Just pulled changes from here and pushed again, but automerge seems to be disabled now?

auto-merge was automatically disabled January 9, 2025 22:30

Head branch was pushed to by a user without write access

Copy link
Collaborator

@gtdang gtdang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Copy link
Collaborator

@asoplata asoplata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; see my comment here #922 (comment)

@asoplata asoplata merged commit 2a82933 into jonescompneurolab:master Jan 10, 2025
12 checks passed
@jasmainak
Copy link
Collaborator

Sorry, maybe auto-merge was disabled because the reviewers had not approved the PR yet ... glad it's merged now! 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants